<form name="rightsForm" action="" method="post">
{foreach from=$rights key=module item=right}
  <div id="{$module}">
    <div><h1>{$module}</h1></div>
    <div id="">
{if $right != null}      
      <ul> 
{foreach from=$right key=rule item=value}
        <li><label>{$rule}</label><input name="rightsForm[{$module}/{$rule}]" type="checkbox" {if $value == true}checked="checked"{/if}/></li>
{/foreach}
      </ul>
{else}
      <p>{t}No rights file{/t}</p>
{/if}
    </div>
  </div>
{/foreach}
  <input type="submit" value="{t}Send{/t}" name="rightsForm[submit]" />
</form>   